package com.lanou.dormitory.service;


import java.util.List;

import com.lanou.dormitory.entity.Admin;

public interface AdminServic {

	public Admin login(String username,String password);
	
	public void update(Admin admin);
	
	public void updatePwd(Integer adminid,String newpwd);

	public List<Admin> getAll();
	
	public Admin getQueryByUserName(String username);
	
	public void addAdmin(Admin admin);
	
	public void update2(Admin admin);
	
	public Admin getAdminById(Integer adminid);
	
	public void deleteById(Integer adminid);
	
}
